package com.rentong.wx.cust.service.impl;

import com.rentong.wx.cust.dao.CustSuggestionDao;
import com.rentong.wx.cust.domain.CustSuggestionEntity;
import com.rentong.wx.cust.service.CustSuggestionService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.Date;

@Service
public class CustSuggestionServiceImpl implements CustSuggestionService {

    @Resource
    private CustSuggestionDao custSuggestionDao;


    @Transactional(rollbackFor = Exception.class)
    @Override
    public Integer insertFeedback(CustSuggestionEntity custSuggestionEntity) {
        custSuggestionEntity.setAddTime(new Date());
        return custSuggestionDao.insertSelective(custSuggestionEntity);
    }



}